<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>中科智晟养殖数据监测系统-总后台</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<!--  <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">-->
  <link rel="stylesheet" href="static/layuiadmin/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="static/layuiadmin/style/admin.css" media="all">
  <!--在线自定义图标 阿良账号-->
  <link rel="stylesheet" href="http://at.alicdn.com/t/font_1725720_dpnu2c3b89n.css" media="all">
  <link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon" />
  <script>
    /^http(s*):\/\//.test(location.href) || alert('请先部署到 localhost 下再访问');
  </script>
</head>
<body class="layui-layout-body">

<div id="LAY_app">
  <div class="layui-layout layui-layout-admin">
    <div class="layui-header">
      <!-- 头部区域 -->
      <ul class="layui-nav layui-layout-left">
        <li class="layui-nav-item layadmin-flexible" lay-unselect>
          <a href="javascript:" layadmin-event="flexible" title="侧边伸缩">
            <i class="layui-icon layui-icon-shrink-right" id="LAY_app_flexible"></i>
          </a>
        </li>
        <!-- <li class="layui-nav-item layui-hide-xs" lay-unselect>
           <a href="http://www.layui.com/admin/" target="_blank" title="前台">
             <i class="layui-icon layui-icon-website"></i>
           </a>
         </li>-->
        <!--        <li class="layui-nav-item" lay-unselect>-->
        <!--          <a href="javascript:" layadmin-event="refresh" title="刷新">-->
        <!--            <i class="layui-icon layui-icon-refresh-3"></i>-->
        <!--          </a>-->
        <!--        </li>-->


      </ul>
      <ul class="layui-nav layui-layout-right" lay-filter="layadmin-layout-right">
        <li class="layui-nav-item" lay-unselect="">
          <a href="javascript:"><img src="//t.cn/RCzsdCq" class="layui-nav-img">${session.om_user.name}</a>
          <dl class="layui-nav-child">
            <dd><a lay-href="base/link/@/setter/personInfo.jhtml">基本资料</a></dd>
            <dd><a lay-href="base/link/@/setter/safeSetter.jhtml">修改密码</a></dd>
            <hr>
            <dd layadmin-event="" style="text-align: center;"><a href="logout.jhtml">退出</a></dd>
          </dl>
        </li>
        <!--   <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-unselect>
             <a href="javascript:" layadmin-event="more"><i class="layui-icon layui-icon-more-vertical"></i></a>
           </li>-->
      </ul>
    </div>
    <!-- 侧边菜单 -->
    <div class="layui-side layui-side-menu">
      <div class="layui-side-scroll">
        <div class="layui-logo" lay-href="home/console.jhtml" style="height: 67px">
          <div style="height: 26px;font-size: 26px">
            <span>中科智晟云大脑</span>
          </div>
          <label style="font-size: 8px">V2.0/总后台</label>
        </div>
        <ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu"
            lay-filter="layadmin-system-side-menu" style="margin-top: 67px">
          <li data-name="home" class="layui-nav-item layui-nav-itemed">
            <a href="javascript:" lay-tips="主页" lay-direction="2">
              <i class="layui-icon layui-icon-home"></i>
              <cite>首页</cite>
            </a>
            <% if(session.om_user.authority.roleCode=='admin'){ %>
            <dl class="layui-nav-child">
              <dd data-name="console" class="layui-this">
                <a lay-href="home/console.jhtml">数据概览</a>
              </dd>
            </dl>
            <% } %>
            <% if(session.om_user.authority.roleCode=='finance'){ %>
            <dl class="layui-nav-child">
              <dd data-name="console" class="layui-this">
                <a lay-href="base/link/@/home/financeindex.jhtml">主页</a>
              </dd>
            </dl>
            <% } %>
            <% if(session.om_user.authority.roleCode=='agent'){ %>
            <dl class="layui-nav-child">
              <dd>
                <a lay-href="base/link/@/home/agentIndex.jhtml">主页</a></dd>
            </dl>
            <% } %>
            <% if(session.om_user.authority.roleCode=='saleMan'){ %>
            <dl class="layui-nav-child">
              <dd>
                <a lay-href="base/link/@/home/salemanIndex.jhtml">主页</a></dd>
            </dl>
            <% } %>
          </li>
          <% if(session.om_user.authority.roleCode=='admin'){ %>
          <li data-name="senior" class="layui-nav-item">
            <a href="javascript:" lay-tips="用户管理" lay-direction="2">
              <i class="layui-icon iconfont layui-extend-yonghuguanli"></i>
              <cite>用户管理</cite>
            </a>
            <dl class="layui-nav-child">
              <dd>
                <a lay-href="base/link/@/userpage/userlist.jhtml">用户列表</a></dd>
            </dl>
          </li>

          <li data-name="senior" class="layui-nav-item">
            <a href="javascript:" lay-tips="代理商管理" lay-direction="2">
              <i class="layui-icon iconfont layui-extend-dailishang"></i>
              <cite>代理商管理</cite>
            </a>
            <dl class="layui-nav-child">
              <dd>
                <a lay-href="base/link/@/userpage/distributionUser.jhtml">代理商列表</a></dd>
            </dl>
          </li>

          <li data-name="user" class="layui-nav-item">
            <a href="javascript:" lay-tips="商品管理" lay-direction="2">
              <i class="layui-icon iconfont layui-extend-shangpinguanli"></i>
              <cite>商品管理</cite>
            </a>
            <dl class="layui-nav-child">
              <dd>
                <a lay-href="base/link/@/shop/goods.jhtml">商品列表</a>
              </dd>
              <dd>
                <a lay-href="base/link/@/shop/coupon.jhtml">优惠券列表</a>
              </dd>
            </dl>
          </li>
          <li data-name="user" class="layui-nav-item">
            <a href="javascript:" lay-tips="订单管理" lay-direction="2">
              <i class="layui-icon iconfont layui-extend-shenheguanli"></i>
              <cite>订单管理</cite>
            </a>
            <dl class="layui-nav-child">
              <dd>
                <a lay-href="base/link/@/examine/cash.jhtml">提现订单</a>
              </dd>
              <dd>
                <a lay-href="base/link/@/examine/shopping.jhtml">购物订单</a>
              </dd>
              <dd>
                <a lay-href="base/link/@/examine/shopaddserviceping.jhtml">增值服务</a>
              </dd>
            </dl>
          </li>
          <% } %>
          <!--分销端用户列表-->
          <% if(session.om_user.authority.roleCode=='saleMan'){ %>

          <li data-name="template" class="layui-nav-item">
            <a lay-href="base/link/@/salesperson/clientList.jhtml" lay-tips="用户列表"
               lay-direction="2">
              <i class="layui-icon iconfont layui-extend-shenheguanli"></i>
              <cite>用户列表</cite>
            </a>
          </li>
          <li data-name="template" class="layui-nav-item">
            <a lay-href="base/link/@/salesperson/order.jhtml" lay-tips="购物订单" lay-direction="2">
              <i class="layui-icon iconfont layui-extend-shenheguanli"></i>
              <cite>购物订单</cite>
            </a>
          </li>
          <li data-name="template" class="layui-nav-item">
            <a lay-href="base/link/@/salesperson/addService.jhtml" lay-tips="增值服务订单"
               lay-direction="2">
              <i class="layui-icon iconfont layui-extend-shenheguanli"></i>
              <cite>增值服务订单</cite>
            </a>
          </li>
          <% } %>
          <% if(session.om_user.authority.roleCode=='agent'){ %>
          <li data-name="user" class="layui-nav-item">
            <a href="javascript:" lay-tips="代理商-订单管理" lay-direction="2">
              <i class="layui-icon iconfont layui-extend-shenheguanli"></i>
              <cite>订单管理</cite>
            </a>
            <dl class="layui-nav-child">
              <dd>
                <a lay-href="base/link/@/daili/addService.jhtml">增值服务订单</a>
              </dd>
              <dd>
                <a lay-href="base/link/@/daili/index.jhtml">购物订单</a>
              </dd>
            </dl>
          </li>
          <li data-name="user" class="layui-nav-item">
            <a href="javascript:" lay-tips="代理商-订单管理" lay-direction="2">
              <i class="layui-icon iconfont layui-extend-shenheguanli"></i>
              <cite>销售员管理</cite>
            </a>
            <dl class="layui-nav-child">
              <dd>
                <a lay-href="base/link/@/userorder/salespersonlist.jhtml">销售员列表</a>
              </dd>
            </dl>
          </li>
          <li data-name="user" class="layui-nav-item">
            <a href="javascript:" lay-tips="代理商-用户管理" lay-direction="2">
              <i class="layui-icon iconfont layui-extend-shenheguanli"></i>
              <cite>用户管理</cite>
            </a>
            <dl class="layui-nav-child">
              <dd>
                <a lay-href="base/link/@/daili/userList.jhtml">用户列表</a>
              </dd>
            </dl>
          </li>
          <li data-name="user" class="layui-nav-item">
            <a href="javascript:" lay-tips="订单管理" lay-direction="2">
              <i class="layui-icon iconfont layui-extend-shenheguanli"></i>
              <cite>提现管理</cite>
            </a>
            <dl class="layui-nav-child">
              <dd>
                <a lay-href="base/link/@/userorder/cashorder.jhtml">提现订单</a>
              </dd>
            </dl>
          </li>
          <% } %>
          <% if(session.om_user.authority.roleCode=='admin'){ %>
          <li data-name="user" class="layui-nav-item">
            <a href="javascript:" lay-tips="系统设置" lay-direction="2">
              <i class="layui-icon iconfont layui-extend-xitongshezhi"></i>
              <cite>系统设置</cite>
            </a>
            <dl class="layui-nav-child">
              <dd>
                <a lay-href="base/link/@/setter/notice.jhtml">通知设置</a>
              </dd>
              <dd>
                <a lay-href="base/link/@/setter/addedServices.jhtml">增值服务</a>
              </dd>
              <dd>
                <a lay-href="base/link/@/setter/role.jhtml">角色管理</a>
              </dd>
              <dd>
                <a lay-href="base/link/@/setter/OperationRecord.jhtml">操作记录</a>
              </dd>
              <dd>
                <a lay-href="base/link/@/setter/saleRecord.jhtml">交易记录</a>
              </dd>
              <dd>
                <a lay-href="base/link/@/setter/qType.jhtml">问题类型</a>
              </dd>
              <dd>
                <a lay-href="base/link/@/setter/AdviceType.jhtml">改进类型</a>
              </dd>
              <dd>
                <a lay-href="base/link/@/setter/knowledge.jhtml">知识库</a>
              </dd>
            </dl>
          </li>
          <% } %>
          <% if(session.om_user.authority.roleCode=='finance'){ %>
          <li data-name="user" class="layui-nav-item">
            <a href="javascript:" lay-tips="财务管理" lay-direction="2">
              <i class="layui-icon iconfont layui-extend-caiwuguanli"></i>
              <cite>财务管理</cite>
            </a>
            <dl class="layui-nav-child">
              <dd data-name="grid">
                <a>订单管理<span class="layui-nav-more"></span></a>
                <dl class="layui-nav-child">
                  <dd data-name="list">
                    <a lay-href="base/link/@/Finance/shopOrder.jhtml">用户购物订单管理</a>
                  </dd>
                  <dd data-name="mobile">
                    <a lay-href="base/link/@/Finance/drawOrder.jhtml">分销提现订单管理</a>
                  </dd>
                  <dd data-name="mobile">
                    <a lay-href="base/link/@/Finance/shopServiceOrder.jhtml">增值服务订单管理</a>
                  </dd>
                </dl>
              </dd>
            </dl>
          </li>
          <% } %>
          <% if(session.om_user.authority.roleCode=='admin'){ %>
          <li data-name="user" class="layui-nav-item">
            <a href="base/link/@/bigdata/bigdata.jhtml" lay-tips="全局展示" lay-direction="2">
              <i class="layui-icon iconfont layui-extend-quanju"></i>
              <cite>全局展示</cite>
            </a>
          </li>
          <% } %>
        </ul>
      </div>
    </div>

    <!-- 页面标签 -->
    <div class="layadmin-pagetabs" id="LAY_app_tabs">
      <div class="layui-icon layadmin-tabs-control layui-icon-prev" layadmin-event="leftPage"></div>
      <div class="layui-icon layadmin-tabs-control layui-icon-next" layadmin-event="rightPage"></div>
      <div class="layui-icon layadmin-tabs-control layui-icon-down">
        <ul class="layui-nav layadmin-tabs-select" lay-filter="layadmin-pagetabs-nav">
          <li class="layui-nav-item" lay-unselect>
            <a href="javascript:"></a>
            <dl class="layui-nav-child layui-anim-fadein">
              <dd layadmin-event="closeThisTabs"><a href="javascript:">关闭当前标签页</a></dd>
              <dd layadmin-event="closeOtherTabs"><a href="javascript:">关闭其它标签页</a></dd>
              <dd layadmin-event="closeAllTabs"><a href="javascript:">关闭全部标签页</a></dd>
            </dl>
          </li>
        </ul>
      </div>
      <div class="layui-tab" lay-unauto lay-allowClose="true" lay-filter="layadmin-layout-tabs">
        <ul class="layui-tab-title" id="LAY_app_tabsheader">
          <li lay-id="home/console.jhtml" lay-attr="home/console.jhtml" class="layui-this"><i
                  class="layui-icon layui-icon-home"></i></li>
        </ul>
      </div>
    </div>


    <!-- 主体内容 -->
    <% if(session.om_user.authority.roleCode=='admin'){ %>
    <div class="layui-body" id="LAY_app_body">
      <div class="layadmin-tabsbody-item layui-show">
        <iframe src="home/console.jhtml" frameborder="0" class="layadmin-iframe"></iframe>
      </div>
    </div>

    <% } %>
    <% if(session.om_user.authority.roleCode=='finance'){ %>
    <div class="layui-body" id="LAY_app_body">
      <div class="layadmin-tabsbody-item layui-show">
        <iframe src="base/link/@/home/financeindex.jhtml" frameborder="0" class="layadmin-iframe"></iframe>
      </div>
    </div>

    <% } %>
    <% if(session.om_user.authority.roleCode=='agent'){ %>
    <div class="layui-body" id="LAY_app_body">
      <div class="layadmin-tabsbody-item layui-show">
        <iframe src="base/link/@/home/agentIndex.jhtml" frameborder="0" class="layadmin-iframe"></iframe>
      </div>
    </div>

    <% } %>
    <% if(session.om_user.authority.roleCode=='saleMan'){ %>
    <div class="layui-body" id="LAY_app_body">
      <div class="layadmin-tabsbody-item layui-show">
        <iframe src="base/link/@/home/salemanIndex.jhtml" frameborder="0" class="layadmin-iframe"></iframe>
      </div>
    </div>
    <% } %>



    <!-- 辅助元素，一般用于移动设备下遮罩 -->
    <div class="layadmin-body-shade" layadmin-event="shade"></div>
  </div>
</div>

<script src="static/layuiadmin/layui/layui.js"></script>
<script>
  function x_admin_show(title, url, w, h) {
    if (title == null || title == '') {
      title = false;
    }
    if (url == null || url == '') {
      url = "404.html";
    }
    if (w == null || w == '') {
      w = ($(window).width() * 0.4);
    }
    if (h == null || h == '') {
      h = ($(window).height() - 400);
    }
    layer.open({
      type: 2,
      area: [w + 'px', h + 'px'],
      fix: false, //不固定
      maxmin: true,
      shadeClose: false,
      shade: 0.4,
      title: title,
      content: url,
      success: function (layero, index) {
        layer.render();
      }
    });
  }


  layui.config({
    base: 'static/layuiadmin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'admin', 'layer', 'element', 'form'], function () {
  })
</script>
</body>
</html>


